package com.example.serviceheadlines.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.tangyuan.common.result.Result;
import com.tangyuan.dto.HeadlinesCommentDto;
import com.tangyuan.model.HeadlinesComment;
import com.tangyuan.model.User;

/**
 * @Description: headlines_comment
 * @Author: jeecg-boot
 * @Date:   2024-03-18
 * @Version: V1.0
 */
public interface IHeadlinesCommentService extends IService<HeadlinesComment> {

    Result addComment(User user, HeadlinesCommentDto headlinesCommentDto);

    Result<Object> selectCommentByHeadlinesId(User user, HeadlinesComment headlinesComment, Integer pageSize, Integer pageNum);

    void updateHeadlinesCommentName(String nickName, Long userId);

    void updateHeadlinesCommentAvatar(String url, Long userId);
}
